#ifndef LABEL_H
#define LABEL_H

#include <QWidget>
#include <QLabel>
#include <QMouseEvent>
class Label : public QLabel
{
    Q_OBJECT

public:
    explicit Label(QWidget *parent = 0);
    ~Label();

    bool release=0;
    QPoint startPos,endPos;
    QWidget *fath;

private:
protected:
    //void paintEvent(QPaintEvent *);
    void mousePressEvent(QMouseEvent* event);
        //鼠标移动事件
    void mouseMoveEvent(QMouseEvent *event);
        //鼠标释放事件
    void mouseReleaseEvent(QMouseEvent *event);
};

#endif // LABEL_H
